package charcount

//计算输入字符串中各个字符出现的次数
func Charcount(s string) map[string]int {
	m := make(map[string]int, len(s))
	for _, r := range s {
		m[string(r)]++
	}
	return m
}
